package com.itheima.web;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/maven")
public class Servlet extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html;charset=utf8");
        response.getWriter().print("靓仔你好");
        System.out.println("1111");
        System.out.println("这是1.0");
        System.out.println("zhe");
        System.out.println("hello");
        System.out.println("hello");
        System.out.println("hello");
        System.out.println("1");
        System.out.println("2");
        System.out.println("3");
        System.out.println("3");
        System.out.println("3");
        System.out.println("5");
        System.out.println("4");
        System.out.println("7");
        System.out.println("6");

    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        doPost(request, response);
    }
}
